package dfl.bysj.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import dfl.bysj.entity.VO.ExcelDictDTO_Student;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author DFL
 * @since 2022-05-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Student对象", description="")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "stu_id")
      private Integer stuId;

    private String stuName;

    private Integer stuPhone;

    private Integer graId;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime updateTime;

    public Student() {
    }

    public Student(ExcelDictDTO_Student excelDictDTO_student, Integer graId) {
        this.stuId = excelDictDTO_student.getStuId();
        this.stuName = excelDictDTO_student.getStuName();
        this.stuPhone = excelDictDTO_student.getStuPhone();
        this.graId = graId;
    }


}
